using SG;
using System.Collections.Generic;
using UnityEngine;

public class GameMain : MonoBehaviour
{
    static GameMain m_Instance;
    public static GameMain Instance()
    {

        return m_Instance;
    }
    // Start is called before the first frame update
    void Start()
    {
        m_Instance = this;
        UIMgr.Instance();
    }

    // Update is called once per frame
    void Update()
    {
        EventMgr.Instance().DoUpdate();

        for (int i = 0; i < m_DataBaseList.Count; i++)
            m_DataBaseList[i].DoUpdate();

    }
    List<DataBase> m_DataBaseList = new List<DataBase>();
    public void AddDataBase(DataBase data)
    {
        m_DataBaseList.Add(data);
    }
}
